//
//  JMCreditView.m
//  NewiOSProject
//
//  Created by JMMac on 13.1.24.
//  Copyright © 2024 范智渊. All rights reserved.
//

#import "JMCreditView.h"
@interface JMCreditView()
@property (nonatomic, strong)UILabel *titleLab;

@property (nonatomic, strong)UIView *ficoView;
@property (nonatomic, strong)UILabel *ficoLab;
@property (nonatomic, strong)UIButton *ficoBtn;

@property (nonatomic, strong)UIView *cloudunView;
@property (nonatomic, strong)UILabel *cloudunLab;
@property (nonatomic, strong)UIButton *cloudunBtn;

@end

@implementation JMCreditView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _titleLab = [JMControl createLabelWithFrame:(CGRectMake(24, 27, kAppW(), 24)) Font:mediumFont(17) Text:@"Mi crédito" color:Hex_Str_COLOR(@"#000000")];
        [self addSubview:_titleLab];
        
        _ficoView = [[UIView alloc]initWithFrame:(CGRectMake(24, _titleLab.bottom+15, kAppW()-48, 70))];
        [self addSubview:_ficoView];
        _ficoView.backgroundColor = Hex_Str_COLOR(@"#F6F9FE");
        _ficoView.cornerRadius = 4;
        
        _ficoLab = [JMControl createLabelWithFrame:(CGRectMake(26, 0, kAppW()/2, _ficoView.height)) Font:mediumFont(15) Text:@"FICO Score" color:Text_COLOR_LEVEL1()];
        [_ficoView addSubview:_ficoLab];
        
        _ficoBtn =[JMControl createButtonWithFrame:(CGRectMake(_ficoView.width-125, 0, 120, 32)) title:@"Obtener" titleColor:WhiteColor() titleFont:Font(13) backgroundColor:mainSchemeColor() Target:self Action:@selector(obtBtnClick:)];
    }
    return self;
}
-(void)obtBtnClick:(UIButton *)sender{
    
}
@end
